package com.mycat.chat.two.handle;

import com.mycat.chat.two.handle.base.Context;
import com.mycat.chat.two.handle.base.MessageHandle;
import com.mycat.chat.two.msg.MessageLogin;

/**
 * 处理登陆操作
 *
 * @author roger.
 * @email 190642964@qq.com
 * @create 2017-02-24
 */
public class MessageLoginHandle extends MessageHandle {

    private MessageLogin message;

    public MessageLoginHandle(MessageLogin message){
        this.message = message;
    }

    @Override
    protected void handle(Context context) {
        System.out.println(this.getMessage());
        System.out.println("MessageLoginHandle...进行登陆操作消息处理.....");
    }

    public MessageLogin getMessage() {
        return message;
    }

    public void setMessage(MessageLogin message) {
        this.message = message;
    }
}
